package haizhi.fruitmall.pojo.form;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Date: 2017/12/23 19:34
 * @Author: Richard Zane
 */

@Data
@EqualsAndHashCode(callSuper = false)
public class GoodsUnitForm extends BaseForm {

    private Long unitId;

    private String unitName;

    private BigDecimal unitPrice;

    private Integer unitStock;

    private Integer unitSale;

    private String unitPicture;

    private Long goodsId;

    private List<Long> unitIds;

    public GoodsUnitForm() {
    }

    public GoodsUnitForm(Long goodsId) {
        this.goodsId = goodsId;
    }

    public GoodsUnitForm(List<Long> unitIds) {
        this.unitIds = unitIds;
    }
}
